package com.example.demo.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Entity
@Data
public class Book {
    @Id
    private String ISBN;
    private String Title;
    private String Author;
    private int CategoryId;
    private int Pages;
    private int Words;
    private String Publisher;
    private float Price=0;
    private int TotalCount;
    //private String PictureUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ActionDate;
    private String Introduction;
    private String PictureBase="";
}
